package com.geeksaga.common.xml;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 * @author newbie
 * @since 0.1
 */
public class XmlDocument {

    private static final String MESSAGE = "message";
    private static final String HEADER = "header";
    private static final String BODY = "body";
    
    private Document document;
	private Element message;
	private Element header;
	private Element body;
	private Element lists;

	public XmlDocument(){
		document = XmlUtil.createDocument();
		message = document.createElement(MESSAGE);
		header = document.createElement(HEADER);
		body = document.createElement(BODY);
		message.appendChild(header);
		message.appendChild(body);
		document.appendChild(message);
	}

	public Element getBody() {
		return body;
	}

	public void setBody(Element body) {
		this.body = body;
	}

	public Document getDocument() {
		return document;
	}

	public void setDoc(Document doc) {
		this.document = doc;
	}

	public Element getHeader() {
		return header;
	}

	public void setHeader(Element header) {
		this.header = header;
	}

	public Element getMessage() {
		return message;
	}

	public void setMessage(Element message) {
		this.message = message;
	}

	public Element getLists() {
		return lists;
	}

	public void setLists(Element lists) {
		this.lists = lists;
	}
}